﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConceptualSample
{
    //有些命令可以自己实现简单的操作
    class SimpleCommand : ICommand
    {
        private string _payload = string.Empty;

        public SimpleCommand(string payload)
        {
            this._payload = payload;
        }

        public void Execute()
        {
            Console.WriteLine($"简单命令:看,我可以做些简单的事情，比如输出({this._payload})");
        }
    }
}
